import { axios } from '@/utils/request'

export function querySession (parameter) {
  return axios({
    url: '/session/query',
    method: 'post',
    data: parameter
  })
}

export function addSession (parameter) {
  return axios({
    url: '/session/add',
    method: 'post',
    data: parameter
  })
}

export function editSession (parameter) {
  return axios({
    url: '/session/update',
    method: 'post',
    data: parameter
  })
}

export function removeSession (parameter) {
  return axios({
    url: '/session/remove',
    method: 'post',
    data: parameter
  })
}

export function getHistoryInfo (parameter) {
  return axios({
    url: '/session/getInfo',
    method: 'post',
    data: parameter
  })
}
